#ifndef _SENSOR_PINDEV_H_
#define _SENSOR_PINDEV_H_

typedef struct
{
    rt_uint8_t infrared;     //人体红外：有人时为1
    rt_uint8_t vibration;    //震动：发生震动时为1
    rt_uint8_t hall;         //霍尔：有磁铁时为1
    rt_uint8_t flame;        //火焰：有火焰时为1
    rt_uint8_t grating;      //光栅：有遮挡时为1
    rt_uint8_t fan;          //风扇：打开时为1
    rt_uint8_t lock;         //电磁锁：打开时为1
}pin_sensor_status_st;

void fan_on(void);
void fan_off(void);
void lock_off(void);
void lock_on(void);
void pin_sensor_read(pin_sensor_status_st *sensor_status);
void pin_sensor_init(void);

#endif  // _SENSOR_PINDEV_H_
